package com.mxdx.edu.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 学生类型枚举类
 * 
 * @author howie
 * @date 2018-02-12
 */
public enum StudentTypeEnums {

    TOURISTS(1, "游客"),
    ENROLLED_STUDENTS(2, "在校生"),
    REGISTER_STUDENTS(3, "注册学生"),
    REGISTER_AGENT(4, "注册代理商"),
    SALES_MAN(6, "业务员"),
	;


    private int code;

    private String desc;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    private StudentTypeEnums(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public Map<Integer, StudentTypeEnums> getMap(){
        return STUDENT_TYPE_ENUMS_MAP;
    }

    private static Map<Integer, StudentTypeEnums> STUDENT_TYPE_ENUMS_MAP = new HashMap<>();
    static {
        STUDENT_TYPE_ENUMS_MAP.put(1,TOURISTS);
        STUDENT_TYPE_ENUMS_MAP.put(2,ENROLLED_STUDENTS);
    }

}
